#include<iostream>

using namespace std;

int main ( )
{
    int a,b,*p,*p1,*p2;
    cout<<"enter the value of a,b"<<endl;
    cin>>a>>b; 
    p1=&a;
    p2=&b;

    if(a<b)
    {
        p=p1;
        p1=p2;
        p2=p;
    }

    cout<<*p1<<"  "<<*p2<<endl;
    cin>>*p;
    return 0;
}
       